public class Base {
    public Base() {
        func();
    }
    public void func() {
        System.out.println("Base.func");
    }
}

class Derived extends Base {
    private int n = 1;
    @Override
    public void func() {
        System.out.println("Derived.func" + n);
    }
}
